package com.xinqi.modules.user.user.dto.req;

import com.xinqi.common.base.response.Param;
import com.xinqi.common.core.enums.UserStatusEnum;
import io.swagger.v3.oas.annotations.Parameter;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户信息-请求对象-查询
 *
 * @author: wenjie
 * @date: 2023/05/17
 */
@Data
public class UsersQueryDTO extends Param {
    @Parameter(description = "id", example = "100001")
    private Long id;

    @Parameter(description = "手机号", example = "18888888888")
    private String mobile;

    @Parameter(description = "多合一查询条件", example = "XQ")
    private String searchKey;

    @Parameter(description = "用户状态：1-正常；2-禁用", example = "1")
    private UserStatusEnum status;

    @Parameter(description = "开始时间", example = "2023-10-01 00:00:00")
    private LocalDateTime startTime;

    @Parameter(description = "结束时间", example = "2023-10-01 23:59:59")
    private LocalDateTime endTime;
}
